package com.portal.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.portal.entity.Certificate;
import com.portal.mapper.CertificateMapper;
import com.portal.service.CertificateService;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * 公司资质服务实现类
 */
@Service
public class CertificateServiceImpl extends ServiceImpl<CertificateMapper, Certificate> implements CertificateService {
    
    @Override
    public List<Certificate> getCertificateList() {
        LambdaQueryWrapper<Certificate> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(Certificate::getStatus, true)
               .orderByAsc(Certificate::getSortOrder);
        return list(wrapper);
    }
} 